# 这个类主要方便主类播放音乐
import pygame

pygame.mixer.init()


class WordMusic(pygame.sprite.Sprite):
    """docstring for WordMusic"""

    def __init__(self):
        super(WordMusic, self).__init__()
        self.music = pygame.mixer.Sound("./music/words.wav")

    def wordmusicplay(self):
        self.music.play()


